package com.lbssoft.gpsbd.service.impl;

import com.lbssoft.gpsbd.dao.ConfigMapper;
import com.lbssoft.gpsbd.model.Config;
import com.lbssoft.gpsbd.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by nczc on 2018/5/22.
 */
@Service
public class ConfigServiceImpl implements ConfigService {
    @Autowired
    public ConfigMapper configMapper;

    @Override
    public Config getConfig() {
        return configMapper.getConfig();
    }

    @Override
    public void update(Config config) {
        configMapper.update(config);
    }
}
